package com.itfly.mapper;

import com.itfly.entity.EventCategories;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
* @author Administrator
* @description 针对表【event_categories】的数据库操作Mapper
* @createDate 2024-11-05 11:43:29
* @Entity com.itfly.entity.EventCategories
*/
public interface EventCategoriesMapper {

    int deleteByPrimaryKey(Long id);

    int insert(EventCategories record);

    int insertSelective(EventCategories record);

    //根据userid查询
    List<EventCategories> selectById(Integer userid);

    int updateByPrimaryKeySelective(EventCategories record);
    //根据id更新
    int updateByPrimaryKey(@Param("categoryName") String categoryName, @Param("id") Integer id);

    //新增
    int insertCategory(EventCategories eventCategories);

    EventCategories selectByName(@Param("categoryName") String categoryName, @Param("userId") Integer userId);

    //分类id
    EventCategories selectByCategoryId(Integer id);

    int deleteCategory(Integer id);
}
